﻿@using QDT.Core.Members
@model QDT.Web.Models.UserLoginModel
@{
    ViewBag.Title = "用户注册";
    User user = null;

    if (ViewBag.Pid != 0)
    {
        user = Html.F().GetUser(ViewBag.Pid);
    }
    var pName = user == null ? "" : user.Mobile;
}
<script type="text/javascript">
    var environment = {
        userVo: '',
        role: '',
        userId: '',
        basePath: '/Account',
        userCash: '',
        globalPath: 'http://www.zxidai.com/'
    };
</script>
<div class="ui-body">
    <div class="ui-inner">
        <div class="ui-box ui-reg">
            <div style="margin: 0 25px 45px;">
                <h2 style="padding-left: 10px; color: #ffc13b;" class="font-size20">
                    用户注册</h2>
                <hr style="border: 1px #ffc13b solid;" />
            </div>
            <div style="position: absolute; top: 80px; left: 550px;">
                <a target="_blank" href="javascript:;">
                    <img src="/Content/Default/Images/register01.png" /></a>
            </div>
            <form action="@Url.Action("Register")" class="ui-form" method="post" onsubmit="return check()" style="padding: 0 0;">
            <script src="/Content/Default/JS/RegistAndLogin/jquery-1.8.3.min.js" type="text/javascript"></script>
            <script src="/Content/Default/JS/RegistAndLogin/global-1.1.0.min.js" type="text/javascript"></script>
                <div>
                        @Html.AntiForgeryToken()
                    <div class="ui-form-item">
                        <label for="UserName" class="ui-label">
                            <span class="ui-form-required">*</span>用户名</label>
                        <input type="text" id="signName" name="UserName" onblur="chekUsNamefor()" class="ui-input ui-input-large"
                               maxlength="18" autocomplete="off" style="border-radius: 6px 6px; height: 22px;
                                                                                                                                                                                                                                                                                                                                                                                                                    outline: none;" />
                        <span class="tip_name" id="signNameTip"></span>
                    </div>
                    <div class="ui-form-item">
                        <label for="Password" class="ui-label">
                            <span class="ui-form-required">*</span>密码</label>
                        <input type="password" id="signPwd" name="Password" onblur="chekPwdfor()" class="ui-input ui-input-large"
                               maxlength="16" autocomplete="off" style="border-radius: 6px 6px; height: 22px;
                                                                               outline: none;" />
                        <span class="tip_pwd" id="signPwdTip" style="text-align: center;"></span>
                    </div>
                    <div class="ui-form-item">
                        <label for="ConfirmPassword" class="ui-label">
                            <span class="ui-form-required">*</span>确认密码</label>
                        <input type="password" id="signPwdRepeat" name="ConfirmPassword" onblur="checkPWDui()"
                               class="ui-input ui-input-large" maxlength="16" style="border-radius: 6px 6px;
                                                                                                                                                                height: 22px; outline: none;" />
                        <span class="tip" id="signPwdRepeatTip"></span>
                    </div>
                    <div class="ui-form-item">
                        <label for="UserName" class="ui-label">
                            推荐人</label>
                        <input type="text" id="signPName" name="PName" onblur="checkpMobilefor()" class="ui-input ui-input-large"
                               maxlength="18" autocomplete="off" style="border-radius: 6px 6px; height: 22px; outline: none;" value="@pName" placeholder="推荐人绑定的手机号"/>
                        <span class="tip_name" id="signPNameTip"></span>
                    </div>
                    <div class="ui-form-item">
                        <label class="ui-label" for="mobile">
                            <span class="ui-form-required">*</span>手机号码</label>
                        <input type="text" id="mobile" name="mobile" class="ui-input ui-input-large" onblur="checkMobilefor()"
                               style="border-radius: 6px 6px; height: 22px; outline: none;" maxlength="11" />
                        <span class="tip proper" id="mobileMessage"></span>
                    </div>
                    <div class="ui-form-item">
                        <label class="ui-label" for="ValidateCode">
                            <span class="ui-form-required">*</span>验证码</label>
                        <input name="ValidateCode" id="ValidateCode" class="ui-input ui-input-large" type="text"
                               style="width: 80px; border-radius: 6px 6px; height: 22px; outline: none; margin-right: 25px;" />
                        @Html.ValidateImage()
                        <a href="javascript:$('#ValicodeImg').click();" s>看不清，换一张</a> <span class="tip" id="signAuthCodeTip">
                                                                                      </span>
                    </div>
                    <div class="ui-form-item">
                        <input class="ui-checkbox" id="agreement" name="agreement" checked="checked" value=""
                               type="checkbox" />
                        <label>
                            我已阅读并接受《<a href="javascript:void(0);" style="color: Red;" onclick=" javascript:window.open('/Article/Agreement/', '', 'width=1024px;height=768px,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=20,left=20,resizable=no'); ">众禧贷注册协议</a>》
                            及《<a href="javascript:void(0);" style="color: Red;" onclick=" javascript:window.open('/Article/Agreement2/', '', 'width=1024px;height=768px,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=20,left=20,resizable=no'); ">众禧贷投资咨询与管理服务协议</a>》
                        </label>
                        <span id="protocolTip"></span>
                    </div>
                    <div class="ui-form-item">
                        <input type="hidden" name="ajax" value="1" />
                        <input type="submit" class="ui-button-rrd-blue ui-button-rrd-blue-large" style="background: #ffc13b"
                               value='立即注册' />
                    </div>
                    @*                            <div class="ui-form-item" style="margin-top: 15px;">*@
                    @*                                <div style="float: left;">*@ @*                                    <img src="/Content/Default/Images/ssl_ok006.png" />&nbsp;</div>*@
                    @*                                <p class="font_size12">*@ @*                                    您的信息已通过SSL加密保护，数据传输安全！*@
                    @*                                </p>*@ @*                            </div>*@
                </div>
            <script type="text/javascript">
                function check() {
                    if (chekUsNamefor() && chekPwdfor() && checkPWDui() && checkMobilefor()) {
                        return true;
                    }
                    return false;
                }
            </script>
            <script src="/Content/Default/JS/RegistAndLogin/account.set.js" type="text/javascript"></script>
            <script src="/Content/Default/JS/RegistAndLogin/registerVerify.js" type="text/javascript"></script>
            <script src="/Content/Default/JS/RegistAndLogin/strengths.js" type="text/javascript"></script>
            <script type="text/javascript">
                $(function () {
                    $('#signPwd').CipherStrengths();
                });
            </script>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $('#submit').bind("click", function () {
        if (!$('#agreement').is(":checked")) {
            alert("请同意众禧贷注册协议");
            event.returnValue = false;
            return;
        }
    });
</script>
